![]() |
OPC-UA Embedded Server SDK
2.1.0
|
Functions | |
| void | UAServer_Callback_process_asynchronously (uintptr_t operation_handle) |
| uintptr_t | UAServer_Process_asynchronously (uintptr_t operation_handle) |
| void | UAServer_Operation_completed (uintptr_t operation_handle) |
| UA_Status_t | UAServer_Callback_mutex_init (UA_MUTEX_T *mutex) |
| UA_Status_t | UAServer_Callback_mutex_destroy (UA_MUTEX_T *mutex) |
| UA_Status_t | UAServer_Callback_mutex_lock (UA_MUTEX_T *mutex) |
| UA_Status_t | UAServer_Callback_mutex_unlock (UA_MUTEX_T *mutex) |
| void UAServer_Callback_process_asynchronously | ( | uintptr_t | operation_handle | ) |
Function provided by host to enable library to hand off asynchronous operations
The library can optionally perform certain operations asynchronously to reduce latency and jitter when under heavy load from multiple clients and/or when using a message security mode other than NONE. The library provides an operation handle to this callback. The host then passes the handle to UAServer_Process_asynchronously() on a different thread and calls UAServer_Operation_completed() on the main thread when complete. If the host does not wish to hand off the operation to another thread it can call the API functions listed above from within this callback.
| [in] | operation_handle | An opaque handle to the operation to perform |
| uintptr_t UAServer_Process_asynchronously | ( | uintptr_t | operation_handle | ) |
Function to perform an operation
Can optionally be called on a different thread.
| [in] | operation_handle | An opaque handle to the operation to perform |
| void UAServer_Operation_completed | ( | uintptr_t | operation_handle | ) |
Function to inform the library that an operation has been completed.
Must be called on the main thread.
| [in] | operation_handle | An opaque handle to the operation performed |
| UA_Status_t UAServer_Callback_mutex_init | ( | UA_MUTEX_T * | mutex | ) |
Initialise a mutex
| [in] | mutex | The mutex to initialise. The type UA_MUTEX_T must be defined by the application developer in the build configuration |
Where (UA_INCLUDE_ASYNC_OPS is > 0) this callback may be called on different threads. Ensure you provide whatever locking is necessary for your platform when enabling asynchronous operation.
| UA_Status_t UAServer_Callback_mutex_destroy | ( | UA_MUTEX_T * | mutex | ) |
Destroy a mutex
| [in] | mutex | The mutex to destroy. The type UA_MUTEX_T must be defined by the application developer in the build configuration |
Where (UA_INCLUDE_ASYNC_OPS is > 0) this callback may be called on different threads. Ensure you provide whatever locking is necessary for your platform when enabling asynchronous operation.
| UA_Status_t UAServer_Callback_mutex_lock | ( | UA_MUTEX_T * | mutex | ) |
Lock a mutex
| [in] | mutex | The mutex to lock. The type UA_MUTEX_T must be defined by the application developer in the build configuration |
Where (UA_INCLUDE_ASYNC_OPS is > 0) this callback may be called on different threads. Ensure you provide whatever locking is necessary for your platform when enabling asynchronous operation.
| UA_Status_t UAServer_Callback_mutex_unlock | ( | UA_MUTEX_T * | mutex | ) |
Unlock a mutex
| [in] | mutex | The mutex to unlock. The type UA_MUTEX_T must be defined by the application developer in the build configuration |
Where (UA_INCLUDE_ASYNC_OPS is > 0) this callback may be called on different threads. Ensure you provide whatever locking is necessary for your platform when enabling asynchronous operation.